﻿using System.Windows;
using System.Windows.Controls;
using Kiva7.Controls;
using Kiva7.DataClasses;

namespace Kiva7.Pages
{
    public partial class MainMapControl : BaseUserControl
    {
        public MainMapControl()
        {
            InitializeComponent();
        }

        private void Pushpin_Click(object sender, RoutedEventArgs e)
        {
            Button button = sender as Button;
            if (sender != null)
            {
                LoanList list = new LoanList();
                list.Add(button.DataContext as Loan);
                DoNavigate(LoanDetailPage.GetPageUrl(list, 0));
            }
        }
    }
}
